<template>
<RouterView/>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
import {userStore} from "./store/userStore";

const userStoreImpl = userStore();


/**
 * 初始化历史登录
 */
const initUserLocalStorage = () => {
  const userInfo: string | null = window.localStorage.getItem("user");
  if (userInfo) {
    userStoreImpl.user = JSON.parse(userInfo);
  }
}

onMounted(() => {
  initUserLocalStorage();
})

</script>


<style>
body,html{
  width: 100%;
  height: 100%;
}
#app{
  width: 100%;
  height: 100%;
}
body{
  margin: 0 !important;
}
a{
  text-decoration : none;
}
el-dropdown:hover{
  border: 0 !important;
}
.el-dropdown:hover{
  border: 0 !important;
}

</style>
